﻿using Acme.SmartWMS.DataBasic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;

namespace Acme.SmartWMS.BasicInfo.CommodityDetails
{
    /// <summary>
    /// 商品明细IService
    /// </summary>
    public interface ICommodityDetailAppService
    {
        Task<int> AddCommodityDetail(CommodityDetailDTO dto);
        Task<int> UpdateCommodityDetail(CommodityDetailDTO dto);
        Task<int> DeleteCommodityDetail(int id);
        
        PagedResult GetCommodityDetails(string? name, int page = 1, int limit = 2);

        Task<CommodityDetail> GetCommodityDetailById(int id);
        List<DictItem> GetDictItemById(int id=1);

    }
}
